//
//  FirstViewController.h
//  DogLocate
//
//  Created by mac on 11-5-5.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "SlideToCancelViewController.h"
#import "WalkInfo.h"
#import <MapKit/MapKit.h>
#import "InfoMgr.h"


@interface FirstViewController : UIViewController <CLLocationManagerDelegate,SlideToCancelDelegate,
UIActionSheetDelegate,MKReverseGeocoderDelegate>{

	UILabel *timeLabel;
	UILabel *distanceLael;
	UILabel *speedLabel;
	UILabel *signalLabel;
	NSTimer *timer;
	UIButton *startButton;
	UIButton *pauseButton;
	
	NSString *speedStr;
	NSString *distanceStr;
	NSString *localString;
	
	CLLocationManager *locManager;
	CLLocation *lastAccurateLocation;

	int hour;
	int min;
	int sec;
	float aggregateDistance;
	NSDate *start;
	NSString *reportString;
	
	BOOL isCounting;
	SlideToCancelViewController *slideToCancel;
	UIBarButtonItem *lock;
	NSTimeInterval reduce;
	NSDate *pauseDate;
	NSTimeInterval pauseInterval;
	NSTimeInterval resumeInterval;
	
	NSMutableArray *locateInfo;
	
	UIView *findGPSView;
}
@property (nonatomic,retain) NSDate *start;
@property (nonatomic,retain) UIView *findGPSView;
@property (retain) CLLocationManager *locManager;
@property (retain) CLLocation *lastAccurateLocation;
@property (nonatomic,retain) NSString *reportString;
@property (nonatomic,retain) UIBarButtonItem *lock;
@property (nonatomic,retain) NSTimer *timer;
@property (nonatomic,retain) NSString *speedStr;
@property (nonatomic,retain) NSString *distanceStr;
@property (nonatomic,retain) UIButton *startButton;
@property (nonatomic,retain)UIButton *pauseButton;
@property (nonatomic,retain) NSDate *pauseDate;

-(void) updateLabel;
-(void)findGPS;
@end
